package com.rock.code.datacollconfig.h3c.service.impl;

import com.rock.code.datacollconfig.h3c.dao.TbConfNetDao;
import com.rock.code.datacollconfig.h3c.domain.TB_CONF_NET_KPI;
import com.rock.code.datacollconfig.h3c.domain.TbConfNetIp;
import com.rock.code.datacollconfig.h3c.service.TbConfNetService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class TbConfNetServiceImpl implements TbConfNetService {

    @Resource
    private TbConfNetDao tbConfNetDao;

    @Override
    public List<TbConfNetIp> getAllNetIpConf(Map map) {
        if (map != null && !map.isEmpty()) {
            return tbConfNetDao.getAllNetIpConf(map);
        }
        return null;
    }

    @Override
    public List<TB_CONF_NET_KPI> getAllNetKpiConf(Map map) {
        if (map != null && !map.isEmpty()) {
            return tbConfNetDao.getAllNetKpiConf(map);
        }
        return null;
    }
}